package edu.hubu.talentmanagementsystem.model.ext;


import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import edu.hubu.talentmanagementsystem.model.Model;

import java.io.Serializable;

/**
 * <p>
 * 部门表
 * </p>
 *
 * @author moonlan
 * @since 2021-03-13
 */
@TableName("department")
public class Department extends Model<Department> implements Serializable {


    /**
     * 部门ID
     */
    @TableId(value = "department_id", type = IdType.AUTO)
    private Integer departmentId;

    /**
     * 部门编码
     */
    @TableField("department_num")
    private String departmentNum;

    /**
     * 部门名称
     */
    @TableField("department_name")
    private String departmentName;

    /**
     * 部门负责人
     */
    @TableField("department_staff_id")
    private Integer departmentStaffId;

    /**
     * 部门电话
     */
    @TableField("department_phone_number")
    private String departmentPhoneNumber;

    /**
     * 部门邮件
     */
    @TableField("department_email")
    private String departmentEmail;

    /**
     * 部门规模
     */
    @TableField("department_scale")
    private Integer departmentScale;

    /**
     * 部门描述
     */
    @TableField("department_desc")
    private String departmentDesc;

    /**
     * 部门所在公司ID
     */
    @TableField("department_company_id")
    private Integer departmentCompanyId;

    @TableField(exist = false)
    private Company company;

    public Company getCompany() {
        return company;
    }

    public Department setCompany(Company company) {
        this.company = company;
        return this;
    }

    public Integer getDepartmentId() {
        return departmentId;
    }

    public Department setDepartmentId(Integer departmentId) {
        this.departmentId = departmentId;
        return this;
    }

    public String getDepartmentNum() {
        return departmentNum;
    }

    public Department setDepartmentNum(String departmentNum) {
        this.departmentNum = departmentNum;
        return this;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    public Department setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
        return this;
    }

    public Integer getDepartmentStaffId() {
        return departmentStaffId;
    }

    public Department setDepartmentStaffId(Integer departmentStaffId) {
        this.departmentStaffId = departmentStaffId;
        return this;
    }

    public String getDepartmentPhoneNumber() {
        return departmentPhoneNumber;
    }

    public Department setDepartmentPhoneNumber(String departmentPhoneNumber) {
        this.departmentPhoneNumber = departmentPhoneNumber;
        return this;
    }

    public String getDepartmentEmail() {
        return departmentEmail;
    }

    public Department setDepartmentEmail(String departmentEmail) {
        this.departmentEmail = departmentEmail;
        return this;
    }

    public Integer getDepartmentScale() {
        return departmentScale;
    }

    public Department setDepartmentScale(Integer departmentScale) {
        this.departmentScale = departmentScale;
        return this;
    }

    public String getDepartmentDesc() {
        return departmentDesc;
    }

    public Department setDepartmentDesc(String departmentDesc) {
        this.departmentDesc = departmentDesc;
        return this;
    }

    public Integer getDepartmentCompanyId() {
        return departmentCompanyId;
    }

    public Department setDepartmentCompanyId(Integer departmentCompanyId) {
        this.departmentCompanyId = departmentCompanyId;
        return this;
    }

    @Override
    public String toString() {
        return "Department{" +
                "departmentId=" + departmentId +
                ", departmentNum=" + departmentNum +
                ", departmentName=" + departmentName +
                ", departmentStaffId=" + departmentStaffId +
                ", departmentPhoneNumber=" + departmentPhoneNumber +
                ", departmentEmail=" + departmentEmail +
                ", departmentScale=" + departmentScale +
                ", departmentDesc=" + departmentDesc +
                ", departmentCompanyId=" + departmentCompanyId +
                "}";
    }
}
